﻿@model IEnumerable<ModuleDto>
@Html.Extra()
@{
    var data = Model.OrderBy(x=>x.SortIndex).ToList();
}

<div style="height: 853px;" class="nav-scroll">
    <ul id="oneMenu">
        @for (int i = 0; i < data.Count(); i++)
        {
            var url = "";

            switch (data[i].Name)
            {
                case "后台管理":
                    url = "/App_Content/Theme/OA/css/image/icon-00.png";
                    break;
                case "店铺管理":
                    url = "/App_Content/Theme/OA/css/image/icon-01.png";
                    break;
                case "客户管理":
                    url = "/App_Content/Theme/OA/css/image/icon-02.png";
                    break;
                case "微信运营":
                    url = "/App_Content/Theme/OA/css/image/icon-03.png";
                    break;
                case "场景应用":
                    url = "/App_Content/Theme/OA/css/image/icon-04.png";
                    break;
                case "报表中心":
                    url = "/App_Content/Theme/OA/css/image/icon-05.png";
                    break;
                case "信息管理":
                    url = "/App_Content/Theme/OA/css/image/icon-06.png";
                    break;
                case "业务管理":
                    url = "/App_Content/Theme/OA/css/image/icon-07.png";
                    break;
                default:
                    url = "/App_Content/Theme/OA/css/image/icon-01.png";
                    break;

            }
            <li data-id='@i'>
                <img align="middle" alt="@data[i].Name" src=@url><p style="text-align: center;">@data[i].Name</p>
            </li>
        }
        <div style="top: 45px;" class="arrow-0"></div>
    </ul>
</div>
